<?php

class miuDeliveredModule extends Module {
    /*
     * 在构造函数中装载所依赖的类或其他文件
    */
    function __construct() {
        $this->includePhp('miuDelivered', 'miuDelivered');
    }


    /*
     * 调用插件资源
    */
    public function call($user, $method, $param) {
        switch ($method) {
            case "applyOutstorage":
                $ids=$param->ids;
                $counts=$param->counts;
                miuDelivered::applyOutstorage($ids,$counts);
                break;
            case "waitApplyOutstorageList":
                $keyword=$param->keyword;
                $start=$param->start;
                $limit=$param->limit;
                miuDelivered::waitApplyOutstorageList($keyword,$start,$limit);
                break;
            case "applyOutstorageRecord":
                $status=$param->status;
                $outstorageNumber=$param->search;
                $start=$param->start;
                $limit=$param->limit;
                miuDelivered::applyOutstorageRecord($status,$outstorageNumber,$start,$limit);
                break;
            case "confirmApplyOutstorage":
                $outstorageId=$param->outstorageId;
                miuDelivered::confirmApplyOutstorage($outstorageId);
                break;
            case "getDeliverOrderList":
                $qId=$param->qId;
                $type=$param->type;
                $start=$param->start;
                $limit=$param->limit;
                $status=$param->status;
                $search=$param->search;
                miuDelivered::getDeliverOrderList($qId, $type, $start, $limit, $status, $search);
                break;
            case "expressList":
                miuDelivered::expressList();
                break;
            case "confirmOutstorage":
                $id=$param->id;
                miuDelivered::confirmOutstorage($id);
                break;
            case "waitApplyOutstorageNum":
                $qId=$param->qId;
                miuDelivered::waitApplyOutstorageNum($qId);
                break;
        }
    }
}


$module = new miuDeliveredModule();
Module::addModule($module);
?>